﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Clandestine.Battle.Spells.Arcane
{
    public class Sleep : SingleTargetSpell
    {
        public override string Name
        {
            get { return "Sleep"; }
        }
        public override int MPCost
        {
            get { return 10; }
        }

        public override void OnShowSpellRing()
        {
            Ticker.AddTimer((r, dR) => BattleController.SpellRing.Color = new GLColor(r, 1, r, 1), SpellRingDuration);
        }

        public override BattleAnimation Cast(Combatant caster, Combatant target)
        {
            // Animation
            return delegate
            {
                target.PutToSleep();
            };
        }
    }
}
